package com.jcgyl.export.service;

import java.util.Date;
import java.util.List;
import java.util.Map;

import com.jcgyl.export.entity.Customer;
import com.jcgyl.export.util.entity.Result;

public interface CustomerService {
	/** 查询客户数量 */
	int findRowCount(String name, String code, String contacts, String tel, String email);

	/** 根据客户姓名查询客户 */
	Customer findByNameOrCode(String name, String code);

	/** 根据添加时间来查询客户 */
	List<Customer>  findByAddDate(Date date);

	/** 查询所有客户 */
	Map<String,Object> findAllCustomer(String name, String code, String contacts, String tel, String email, int pageIndex,
			int pageSize);
	/**禁用启用*/
	Result changeState(int customerId,int isdelete);
	/**添加客户*/
	Result  addCustomer(Customer customer);
	/**修改客户*/
	Result  updateCustomer(Customer customer);
	/**删除客户*/
	Result  deleteCustomer(int customerId);
}
